package com.shensi.adminCollect.mapper.station;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shensi.adminCollect.domain.station.MemberManagement;
import com.shensi.adminCollect.domain.station.dto.MemberManagementQueryDto;
import com.shensi.adminCollect.domain.station.vo.MemberManagementVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author PC
* @description 针对表【member_management(成员管理表)】的数据库操作Mapper
* @createDate 2023-08-29 16:35:09
* @Entity generator.domain.MemberManagement
*/
@Repository
public interface MemberManagementMapper extends BaseMapper<MemberManagement> {

    List<MemberManagementVo> selectMemberList(MemberManagementQueryDto memberManagementDto);

    Integer updateBySalesmanId(MemberManagement management);

    MemberManagementVo selectByMemberId(MemberManagement management);

    MemberManagement selectBySalesmanId(Long salesmanId);

    List<String> getEnterpriseIdBySalesmanId(@Param("salesmanIdList") List<Long> salesmanIdList);

    List<MemberManagementVo> getDistrictByEnterpriseIdAndTeamId(MemberManagementQueryDto memberManagementQueryDto);
}




